package com.oneinlet

import org.junit.Test

/**
 * Created by WangZiHe on 2018/5/14
 * QQ/WeChat:648830605
 * QQ-Group:368512253
 * Blog:www.520code.net
 * Github:https://github.com/yancheng199287
 */
class TestYCRegex {

    @Test
    fun testIsNumeric() {
        val a = "0.0"
        val b = "10.0"
        val c = "+40.0"
        val d = "-32.0"
        val e = "0.009"
        val f = "10."
        val g = "055.51"
        println("$a is valid number? ${YCRegex.isNumeric(a)}")
        println("$b is valid number? ${YCRegex.isNumeric(b)}")
        println("$c is valid number? ${YCRegex.isNumeric(c)}")
        println("$d is valid number? ${YCRegex.isNumeric(d)}")
        println("$e is valid number? ${YCRegex.isNumeric(e)}")
        println("$f is valid number? ${YCRegex.isNumeric(f)}")
        println("$g is valid number? ${YCRegex.isNumeric(g)}")
    }
}